package com.imooc.reader.service;

import com.imooc.reader.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TestService {

    @Resource
    private TestMapper testMapper;

    public void batchImport() {
        for (int i = 0; i < 5; i++) {
            testMapper.insertSample();
        }
    }
}
